|
Umístění Menu |
---|
Edit → Toggle Editmode |
Pracovní stoly |
All |
Výchozí zástupce |
Nikdo |
Představen ve verzi |
- |
Viz také |
... |
The Std Edit command activates or deactivates an object's edit mode.
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To activate an object's edit mode use the setEdit
method of the document object. This method is not available if FreeCAD is in console mode.
import FreeCADGui
FreeCADGui.ActiveDocument.setEdit("myObjectName",0)
The second argument is the EditMode. The following options are available:
0 = Default 1 = Transform 2 = Cutting 3 = Color
To deactivate an object's edit mode use the resetEdit
method of the document object.
import FreeCADGui
FreeCADGui.ActiveDocument.resetEdit()